package main.java.tmi.ariTransport.service.impl;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import main.java.tmi.ariTransport.service.AirTransportVO;
import main.java.tmi.common.service.impl.AbstractDao;

import org.springframework.stereotype.Repository;

/**
 * Asign Data Access Object
 *
 * @author min
 * @since 2010. 09. 10.
 */
@Repository
public class AirTransportDAO extends AbstractDao {
	
	public Map<String,String> getAirTransportView(Map<String,String> param){
    	
    	Map<String,String> returnMap ;
        returnMap = (Map<String,String>) selectByPk("AirTransportDAO.getAirTransportView", param);
        return returnMap;
    }
    
	

	//조회
	public List<AirTransportVO> getAirTransportDetailList(Map<String,String> param) throws SQLException {
		return (List<AirTransportVO>) list("AirTransportDAO.getAirTransportDetailList", param);
	}
	
	
	public void  addAirTransport(Map<String, String> param) throws SQLException {
		insert("AirTransportDAO.addAirTransport", param);
	}
	
	
	public int  modifyAirTransport(Map<String, String> param) throws SQLException {
		return update("AirTransportDAO.modifyAirTransport", param);
	}
	

	//수정
	public int  airTransportDetailUpdate(Map<String, String> param) throws SQLException {
		return update("AirTransportDAO.airTransportDetailUpdate", param);
	}
	
	
	
	public int  deleteDoDep(Map<String, String> param) throws SQLException {
		return update("AirTransportDAO.deleteDoDep", param);
	}
	
	public int  deleteDoHead(Map<String, String> param) throws SQLException {
		return update("AirTransportDAO.deleteDoHead", param);
	}
	
	
}
